<style>
.sortdiv_tab{
	zoom: 1;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #336699;
}
.sortdiv_tab li {
	margin: 0;
	padding: 0;
}
.sortdiv_tab li a {
	border-bottom: none;
	cursor: pointer;
} 
</style>

	<ul class="ttp bm cl sortdiv_tab">
	<!--{loop $quicksearchlist_array $id $value}-->
		<li {if $id == $_G['gp_sortid']} class="xw1 a" {/if}><a sortdiv_id="#sortdiv_$id" >$value['sortname']</a></li>
	<!--{/loop}-->
	</ul>
	
	<!--{loop $quicksearchlist_array $id $value}-->
	<div id="sortdiv_$id" class="sortdiv_wrap"  {if $id == $_G['gp_sortid']}{else}style="display: none"{/if} >
		
		<form method="post" autocomplete="off" name="searhsort" id="searhsort" class="bm_c pns mfm bbda cl" action="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id">
			<input type="hidden" name="formhash" value="{FORMHASH}" />
			<!--{loop $value['quicksearchlist'] $optionid $option}-->
			<span class="mtm z">
				<!--{if !in_array($option['type'], array('select', 'radio', 'range'))}-->
				<strong>$option[title]: </strong>
				<!--{/if}-->
				
				<!--{if in_array($option['type'], array('radio', 'checkbox', 'select', 'range'))}-->	
					<!--{if $option[type] != 'checkbox'}-->
						<span class="ftid">
							<select name="searchoption[$optionid][value]" id="$option[identifier]">
								<option value="0">$option[title]{lang unlimited}</option>
							<!--{loop $option['choices'] $idt $valuet}-->
								<option value="$idt" {if $_G[gp_searchoption][$optionid][value] == $idt}selected="selected"{/if}>$valuet</option>
							<!--{/loop}-->
							</select>
						</span>
						<input type="hidden" name="searchoption[$optionid][type]" value="$option[type]">
					<!--{else}-->
						<!--{loop $option['choices'] $idy $valuey}-->
						<input type="checkbox" class="pc" name="searchoption[$optionid][value][$idy]" value="$idy" {if $_G[gp_searchoption][$optionid][value][$idy]}checked="checked"{/if}> $value 
						<!--{/loop}-->
						<input type="hidden" name="searchoption[$optionid][type]" value="checkbox">
						
					<!--{/if}-->
				<!--{else}-->	
					<!--{if $option['type'] == 'calendar'}-->
						<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
						<input type="text" name="searchoption[$optionid][value]" size="15" class="px vm" value="$_G[gp_searchoption][$optionid][value]" onclick="showcalendar(event, this, false)" />
					<!--{else}-->
						<input type="text" name="searchoption[$optionid][value]" size="15" class="px vm" value="$_G[gp_searchoption][$optionid][value]" />
					<!--{/if}-->
				<!--{/if}-->
			</span>
			<!--{/loop}-->
			<span class="mtm z"><button type="submit" class="pn pnp vm" name="searchsortsubmit"><em>{lang search}</em></button></span>
		</form>
	
		
	
		<dl class="bm_c ptm tsm cl ">
			<!--{loop $value['quicksearchlist'] $option}-->	
			<dt>$option[title]: </dt>
			<dd>
				<ul>
					{if $id == $_G['gp_sortid']}
						<li{if $_G['gp_'.$option[identifier]] == 'all'} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id&searchsort=1$filterurladd&$option[identifier]=all$sorturladdarray[$option[identifier]]" class="xi2">{lang unlimited}</a></li>
						<!--{loop $option['choices'] $idx $value}-->
							<li{if $_G['gp_'.$option[identifier]] && $idx == $_G['gp_'.$option[identifier]]} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id&searchsort=1&$option[identifier]=$idx$sorturladdarray[$option[identifier]]" class="xi2">$value</a></li>
						<!--{/loop}-->
					{else}
						<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id&searchsort=1$filterurladd&$option[identifier]=all$sorturladdarray[$option[identifier]]" class="xi2">{lang unlimited}</a></li>
						<!--{loop $option['choices'] $idx $value}-->
							<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id&searchsort=1&$option[identifier]=$idx$sorturladdarray[$option[identifier]]" class="xi2">$value</a></li>
						<!--{/loop}-->
					{/if}
					
				</ul>
			</dd>
			<!--{/loop}-->
		</dl>
	</div>
	<!--{/loop}-->
